package Exam;

import java.util.ArrayList;

/**
 * @author げっしょく
 * @date 2021/7/25
 */
public class Test4 {
    public static void main(String[] args) {
        MyArrayList<String> list = new MyArrayList<>();
        ArrayList<String> list1 = new ArrayList<>();
        list.add("aa");
        list.add("bb");
        list.add("aa");
        list.add("cc");
        String set = list.set(3,"dd");
        System.out.println(set);
        System.out.println(list.size());
        System.out.println(list.toString());
        for (int i = 0; i < list.size; i++) {
            System.out.println(list.get(i));
        }
    }
}
